﻿using AspectCore.DynamicProxy;
using System;

namespace ConsoleAppAOPModule
{
    class Program
    {
        static void Main(string[] args)
        {
            ProxyGeneratorBuilder proxyBuilder = new ProxyGeneratorBuilder();
            using (IProxyGenerator generator= proxyBuilder.Build())
            {
                IAOPTestServer testServer = generator.CreateClassProxy<AOPTestServer>(10);
                testServer.Say("wang");
                var v= testServer.GetAge();
            }

            Console.Read();
        }
    }
}
